{include file="pageheader_erp.htm"}

{insert_scripts files="../js/jquery.1.3.2.js"}

<style type="text/css">
	#outside_container
	{
		width:100%;
		border:none;
		overflow:hidden;
		text-align:center;
		padding:10px;
		background-color:#F4FAFB;
	}
	#inner_container
	{
		width:45%;
		border:1px solid #DDD;
		overflow:hidden;
		text-align:left;
		background-color:#DDEEF2;
		margin:0 auto;
	}

	
	#inner_container table tr td
	{
		padding:6px;
		font-weight:bold;
		background-color:#FFF;
	}
	
	.tb_lable
	{
		padding-left:10px;
		
	}

</style>


 <!-- start goods list -->
<div class="main-div">
	<div id="outside_container">
		<div id="inner_container">
			<form name="add_warehousing_style"  id="add_warehousing_style"  action="javascript:;"  onsubmit="javascript:addWareHousingStyle(this);" method="post">
				<table>
					<tr>
						<td width="30%"><span class="tb_lable">{$lang.erp_warehousing_style}：</span></td>
						<td><input name="warehousing_style" id="warehousing_style" type="text" value="" style="display:block;"/></td>
						<td><span style="color:red;font-weight:normal;">{$lang.erp_required_item}</span></td>
					</tr>
					<tr><td  colspan="3" align="center"><input type="image" src="./images/submit.gif" style="cursor:pointer;" /></td></tr>																									
				</table>
				
				
			</form>
		</div>
	</div>
</div>
<!-- end goods list -->

{literal}
<script language="JavaScript">
   
   function addWareHousingStyleResponse(res){
   	 if(res.error!=0)
	 {
	 	alert(res.message);
	 }
	 else{
	 	window.document.location="./erp_warehouse_manage.php?act=warehousing_style";
	 }
	 
   }
    function addWareHousingStyle()
	{
		warehousing_style=$("#warehousing_style").attr('value');
		
		if(warehousing_style=="")
		{
			alert('{$lang.erp_warehousing_style_required}');
			return;
		}		
			
		Ajax.call('erp_warehousing_style.php?act=add_warehousing_style', 'warehousing_style='+warehousing_style, addWareHousingStyleResponse, 'POST', 'JSON');
		
		}   
</script>
{/literal}
{include file="pagefooter.htm"}

